    package mybook;//book包
    //书架类，用来存放图书
    public class MyBookList {

        private MyBook[] myBook = new MyBook[20];
        private int count;

        public MyBookList() {

            this.myBook[0] = new MyBook("三国演义", "罗贯中", "经典小说", 19.9);
            this.myBook[1] = new MyBook("西游记", "吴承恩", "经典小说", 20.9);
            this.myBook[2] = new MyBook("水浒传", "施耐庵", "经典小说", 21.9);
            this.myBook[3] = new MyBook("红楼梦", "曹雪芹", "经典小说", 22.9);
            this.myBook[4] = new MyBook("阳明心学", "王守仁", "东方哲学", 23.9);
            this.count = 5;

        }
        public MyBook getBook(int pos) {
           return myBook[pos];
        }
        public MyBook setBook(int pos,MyBook myBook1){
            return myBook[pos] = myBook1;
        }

        public MyBook[] getMyBook() {
            return myBook;
        }

        public void setMyBook(MyBook[] myBook) {
            this.myBook = myBook;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }
    }
